#ifndef OTHERUNI_H
#define OTHERUNI_H

#include "members.h"

class OtherUni : public LibMember
{
	public:
	OtherUni(std::string _name, std::string _status, int _memberid , std::string _address, std::string _email, int _debit):
		name(_name), status(_status), memberid(_memberid), address(_address),email(_email),debit(_debit) {}
	~OtherUni(){}

	std::string Name() {return this->name;}
	std::string Status() {return this->status;}
 	int Memberid() {return this->memberid;}
	std::string Address() {return this->address;}
	std::string Email() {return this->email;}
	int Debit() {return this->debit;}
		
	std::string NameMod(std::string str) {this->name = str; return this->name;}
	std::string StatusMod(std::string str) {this->status = str; return this->status;}
	int MemberidMod(int num) {this->memberid = num; return this->memberid;}
	std::string AddressMod(std::string str) {this->address = str; return this->address;}
	std::string EmailMod(std::string str) {this->email = str; return this->email;}
	int DebitMod(int num) {this->debit = num; return this->debit;}
	
	private:
	void AddFine(int count, int numberofdays)
	{
		int fee = count * BorrowFee;
		int fine = fee + (numberofdays * FinePerDay);
		DebitMod(fine);
	}
	void AddBorrow()
	{
		int fee = Debit()+(BorrowFee/2);
		DebitMod(fee);
		
	}
	void DelBorrow()
	{
		int fee = Debit()-(BorrowFee/2);
		DebitMod(fee);
	}
	
	
	std::string name;
	std::string status;
	int memberid;
	std::string address;
	std::string email;
	int debit;
	
};

#endif